package com.itboye.boyeshoping.activity

import android.os.Bundle
import android.view.View
import android.widget.ImageView
import android.widget.RelativeLayout
import android.widget.TextView

import com.itboye.boyeshoping.R
import com.itboye.boyeshoping.base.BaseActivity

/**
 * Created by Administrator on 2018/6/28 0028.
 */

class GoodsDetailActivity : BaseActivity(),View.OnClickListener {


    //title
    private lateinit var backRl: RelativeLayout
    private lateinit var title: TextView
    private lateinit var rightImg: ImageView
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_goodsdetail)
        initFindView()
    }

    private fun initFindView() {
        backRl= findViewById(R.id.backRl)
        title= findViewById(R.id.title)
        rightImg= findViewById(R.id.rightImg)

        title.text="商品详情"

    }
    override fun onClick(p0: View?) {
          when(p0!!.id){
           R.id.backRl->{

               this.finish()
           }


          }
    }

}
